package zxj.spay.base;

public class Result {

	public final static String SUCCESS = "SUCCESS";
	
	public final static String WARN = "WARN";
	
	public final static String ERROR = "ERROR";
	
	
	
	public Result(String result) {
		this.result = result;
	}

	public Result(String result, String msg) {
		this.result = result;
		this.msg = msg;
	}

	public Result(String result, String msg, Object data) {
		this.result = result;
		this.msg = msg;
		this.data = data;
	}

	private String result;
	
	private String msg;
	
	private Object data;
	

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "Result [result=" + result + ", msg=" + msg + ", data=" + data + "]";
	}
}
